package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 3:08:52 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbTransClase generated by hbm2java
 */
@Entity
@Table(name = "TB_TRANS_CLASE", schema = "CATALOGOS")
public class TbTransClase implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String cclaseTrans;
	private String dclaseTrans;
	private Date fhingreso;
	private Set<TbTransaccion> tbTransaccions = new HashSet<TbTransaccion>(0);

	public TbTransClase() {
	}

	public TbTransClase(String cclaseTrans, String dclaseTrans, Date fhingreso) {
		this.cclaseTrans = cclaseTrans;
		this.dclaseTrans = dclaseTrans;
		this.fhingreso = fhingreso;
	}

	public TbTransClase(String cclaseTrans, String dclaseTrans, Date fhingreso,
			Set<TbTransaccion> tbTransaccions) {
		this.cclaseTrans = cclaseTrans;
		this.dclaseTrans = dclaseTrans;
		this.fhingreso = fhingreso;
		this.tbTransaccions = tbTransaccions;
	}

	@Id
	@Column(name = "C_CLASE_TRANS", unique = true, nullable = false, length = 1)
	public String getCclaseTrans() {
		return this.cclaseTrans;
	}

	public void setCclaseTrans(String cclaseTrans) {
		this.cclaseTrans = cclaseTrans;
	}

	@Column(name = "D_CLASE_TRANS", nullable = false, length = 40)
	public String getDclaseTrans() {
		return this.dclaseTrans;
	}

	public void setDclaseTrans(String dclaseTrans) {
		this.dclaseTrans = dclaseTrans;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbTransClase")
	public Set<TbTransaccion> getTbTransaccions() {
		return this.tbTransaccions;
	}

	public void setTbTransaccions(Set<TbTransaccion> tbTransaccions) {
		this.tbTransaccions = tbTransaccions;
	}

}
